<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#">店铺列表</a></li>
			<li><a href="{:url('Shop/add')}">新增店铺</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('Shop/index')}">
                  店铺名:
         <input type="text" class="form-control" name="shop_name" style="width: 120px;" value="{:input('request.shop_name/s','')}" placeholder="请输入店铺">
		<input type="submit" class="btn btn-primary" value="搜索" />
         <a class="btn btn-danger" href="{:url('Shop/index')}">清空</a>
        </form>
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="left">ID</th>
						<th align="left">店铺名</th>
						<th align="left">代理平台名称</th>
						<th align="left">类别</th>
						<th align="left">店铺地址</th>
						<th align="left">创建时间</th>
						<th align="left">状态</th>
						<th align="left">操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="list" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.shop_name}</td>
						<td>{$vo.brand_name}</td>
						<td>{$vo.type_name}</td>
						<td>{$vo.address}</td>
						<td>{$vo.c_time|time_format}</td>
						<td>
							<if condition="$vo['status'] eq 1">
									<a href="{:url('shop/ban',array('id'=>$vo['re_guid']))}" class="js-ajax-dialog-btn" data-msg="你确定将店铺关闭吗?">激活</a>
							<else />
									<a href="{:url('shop/cancelban',array('id'=>$vo['re_guid']))}" class="js-ajax-dialog-btn" data-msg="你确定将店铺激吗?">未激活</a>
							</if>
						</td>
						<td>
						<a href="{:url('Shop/edit',array('id'=>$vo['re_guid']))}">{:lang('EDIT')}</a>
						<a class="js-ajax-delete" href="{:url('Shop/delete',array('id'=>$vo['re_guid']))}">{:lang('DELETE')}</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>